<style>
	/*** 模型的样式表 ***/
	<#if reportModel?? && reportModel.viewtype != "view">
	.cz_<#if reportModel??>${reportModel.id}</#if>{
		height:<#if reportModel??>${reportModel.height!'300'}px</#if>;width:<#if reportModel??>${reportModel.width!'400'}px</#if>; margin: 0 auto;
	}  
	.cz_<#if reportModel??>${reportModel.id}</#if>_table{
		padding:5px;margin-left: 0px; margin-right: 0px; height: 225px;overflow:auto;
	}
	</#if>
	<#if reportModel?? && reportModel.styles??>
	<#list reportModel.styles as style>
	.cz_${style.dataid}{
		${style.style!''}
	}
	.cz_${style.dataid} tbody .measure{
		${style.style!''}
	}
	</#list>
	</#if>
</style>

<#if !reportModel?? || (reportModel.viewtype?? && reportModel.viewtype == "view")>
	<div class="designer_k noborder" id="data_table">
		 <#include "table.html"/> 
	</div>
<#else>
	<div class="designer_k noborder" id="chart_table">
	<!-- 动态模板开始 -->
	<script type="text/javascript">
		<#noescape>${reportModel.templet.templettext!''}</#noescape>
	</script>
	<div id="container" style="width:400px;height:300px;"></div>
	<!-- 动态模板结束 -->
	</div>
	<div class="designer_k noborder" style="overflow:auto;height:265px;position: absolute;bottom: 25px;width: 99.2%;overflow:hidden;">
		<div class="rs_layout_top" style="background-color:#FFFFFF;">
			<ul class="nav_tapWrap nav_tabwps_3">
				<li class="nav_tapIthems cur"><i class="tabIcon tabicon-2"></i>数据</li>
				<li class="nav_tapIthems" id="format"><i class="tabIcon tabicon-3"></i>格式</li>
				<li class="nav_tapIthems"><i class="tabIcon tabicon-4"></i>预警</li>
				
			</ul>
		</div>
		<div class="rs_layout_center nav_tabwps_3con" style="margin-left: 0px; margin-right: 0px; height: 232px;background-color:#FFFFFF;overflow:auto;">
			<div class="nav_tabwps_3_layouts show">
				<div class="rs_layout_center panel-noscroll" id="design_table" style="padding:5px;">
					<#include "table.html"/> 
				</div>
			</div>
			<div class="nav_tabwps_3_layouts" id="setUp">
				<#include "chartproperties.html"/> 
			</div>
			<div class="nav_tabwps_3_layouts">3</div>
		</div>
	</div>
</#if>
<script language="javascript">
	$(".nav_tabwps_3").rs_simpleTabs({
		tabElem				:".nav_tapIthems",			//切换标签的子元素
		tabCurrent			:"cur",						//切换标签的Current状态
		tabCont				:".nav_tabwps_3con",		//切换的元素内容父级
		tabContLayer		:".nav_tabwps_3_layouts",	//切换的元素内容层
		tabContLayerShow	:"show",					//切换的元素Current状态
		afclick				:null						//回调函数接口			
	});
	
//20140310 Bina
$(document).ready(function(){
	//$(".shrinkage .sk_bt").addClass("active");
	$(".shrinkage table:not(:first)").hide();
 
	$(".shrinkage .sk_bt").click(function(){
		$(this).next("table")
			.slideToggle("fast",function(){
				resizeDesign();
			})
			.siblings("table").slideUp("fast");
		$(this).toggleClass("active");
		$(this).siblings(".sk_bt").removeClass("active");
	});
	resizeDesign();
});
</script>